<html>

<head>
    <script src="javascripts/jquery.js"></script>
    <script src="javascripts/jquery.form.js"></script>
    <script src="javascripts/thickbox.js"></script>
    <script src="javascripts/engine.js"></script>

    <link rel="stylesheet" href="css/style.css" type="text/css" />
    <link rel="stylesheet" href="css/thickbox.css" type="text/css" media="screen" />
    <script language="javascript" type="text/javascript">

        $(document).ready(function () {
            initLink();
            $("#content").load('accueil', '', initLink);
        });

    </script>
    
    <title>MotionWeb 3</title>
</head>

<body id="wholepage">

    <div id="border">
        <div id="logo"></div>
            
        <div id="menu"><?php echo $this->myMenu; ?></div>
    </div>
    
    <div id="main">
        <div id="header">
            <div class='bleubox'>
                <div class='boxtopright'><div class='boxtopleft'></div></div>
                <div class='boxcontent'>                
            
            <div id="consult">
                <a class="lienAjax" title="Accueil" href="accueil" target="content"><img src="imgweb/house.png" /> Accueil</a>  
                <?php if ( $this->consultAllowed ) { ?>
                | <a class="lienAjax" href="sequences?threadId=0&selectedType=nonlu" target="content"><img src="imgweb/film.png" /> Sequences enregistrees</a>
                <?php } ?>
            </div>            
            <?php                
            if ( $this->motionStatus )
            {
            ?>    
                Enregistrement cameras : 
                <a class="changeStatusAjax" href="motion/detection?motionDetect=start" target="content">On</a> /
                <a class="changeStatusAjax" href="motion/detection?motionDetect=pause" target="content">Off</a>
                 | 
                <?php 
                if ( $this->paramsAllowed ) 
                { 
                ?>
                    <a class="lienAjax" title="Parametres" href="config" target="content"><img src="imgweb/options.png" /> Parametres</a> | 
                    <a title="Arreter Motion" href="motion/quit"><img src="imgweb/disconnect.png" /> Arreter</a> | 
                <?php 
                } 
                ?>
            <?php
            } else if ( $this->paramsAllowed ) { 
            ?>
                <a class="lienAjax" title="Parametres" href="config" target="content"><img src="imgweb/options.png" /> Parametres</a> |     
                <a title="Lancer Motion" href="motion/launch"><img src="imgweb/connect.png" /> Demarrer</a> | 
            <?php
            }
            ?>            

            <a title="Deconnecter" href="user/disconnect"><img src="imgweb/house_go.png" /> Deconnection</a>

                </div>
                <div class='boxbottomright'><div class='boxbottomleft'></div></div>
            </div>
        </div>
        
        <div id="content"><!-- Ici le contenu dynamique de la page --></div>
    </div>
         
</body>
</html>

